﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ComputerGraphics.Geometry
{
    public class Ray
    {
        private Point3D org;
        private Point3D dir;

        public Ray(Point3D org, Point3D dir)
        {
            this.org = org;
            this.dir = dir;
        }

        public Point3D Origin
        {
            get { return org; }
        }

        public Point3D Direction
        {
            get { return dir; }
        }

        public Point3D GetPointByDistance(double dis)
        {
            return org + dir * dis;
        }
    }
}
